package com.example.daxiguaforharmony.game.core.utils;

import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class Log {
    static final HiLogLabel LOG_INFO_LABEL = new HiLogLabel(HiLog.LOG_APP,0x0001,"FAGUNBA_GAME");
    static final HiLogLabel LOG_ERROR_LABEL = new HiLogLabel(HiLog.ERROR,0x0002,"FAGUNBA_GAME");
    static final HiLogLabel LOG_WARN_LABEL = new HiLogLabel(HiLog.WARN,0x0003,"FAGUNBA_GAME");
    private static final String LOG_FORMAT = "%{public}s: %{public}s";

    public static void info(String info) {
        HiLog.info(LOG_INFO_LABEL, LOG_FORMAT, "INFO", info);
    }

    public static void error(String error) {
        HiLog.info(LOG_ERROR_LABEL, LOG_FORMAT, "ERROR", error);
    }

    public static void warning(String warn) {
        HiLog.info(LOG_WARN_LABEL, LOG_FORMAT, "WARN", warn);
    }
}
